/**
 * @description User 用户信息表
 * @author LI
 */

const seq = require('../sequelize')
const { STRING, INTEGER } =require('../types')

// users user 写入到数据库时为 users
const User = seq.define('user', {
  userName: {
    type: STRING,
    comment: '姓名，可以为空'
  },
  phone: {
    type: STRING,
    allowNull: false,
    comment: '手机号 不能为空'
  },
  area: {
    type: INTEGER,
    comment: '面积'
  },
  address: {
    type: STRING,
    comment: '地址'
  },
  remark: {
    type: STRING,
    comment: '要求，备注'
  },
  reserve: {
    type: STRING,
    comment: '保留字段'
  }
},
{
  comment: '用户信息表',
})

module.exports = User
